import * as mongoose from 'mongoose';
import { DayKSchema } from '../schema/DayK';
const tbName = 'dayK';

interface DayK {
  id: string,
  openingPrice: number,
  closingPrice: number,
  maximumPrice: number,
  lowestPrice: number,
  priceLimit: string,
  changeAmount: number,
  tradingVolumes: number,
  turnovers: number,
  amplitude: string,
  turnoverRate: string,
  date: string
}

const DayKModel = mongoose.model(tbName, DayKSchema)

export { tbName, DayK, DayKModel };